Skip to content

Conversation

@cabljac
Copy link
Contributor

@cabljac cabljac commented Dec 2, 2025

This is a draft PR to support structured output in the anthropic plugin, to resolve #3854

Notes:

  • Introduces overrides to force the VertexAI plugin to use ^0.24.3, otherwise the following occurs (because of the installation of the latest version of the Anthropic SDK in the Anthropic plugin):
    image

@cabljac cabljac changed the title Add structured output 2 feat(js/plugins/anthropic): add structured output support Dec 3, 2025
@CorieW CorieW force-pushed the add-structured-output-2 branch from a0f3a6d to a221d21 Compare December 8, 2025 13:42
@CorieW CorieW force-pushed the add-structured-output-2 branch from 5976b71 to 5a613e4 Compare December 10, 2025 19:20
@cabljac cabljac marked this pull request as ready for review December 16, 2025 13:46
@cabljac cabljac requested review from ifielker and pavelgj December 16, 2025 13:47

/**
* Transforms a JSON schema to be compatible with Anthropic's structured output requirements.
* Anthropic requires `additionalProperties: false` on all object types.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really? interesting...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[js/plugins/anthropic]: Add support for structured responses

4 participants